package com.example.musictutor.factories;

import java.util.List;

import com.example.musictutor.domain.Note;
import com.example.musictutor.domain.Song;
import com.example.musictutor.domain.SongNote;

public class SongNoteFactory {
	public static SongNote createSongNote(long id, long songId, Note note, int start, int end) {
		SongNote songNote = new SongNote();
		songNote.setName(note.getName());
		songNote.setResourceId(note.getResourceId());
		songNote.setId(note.getId());
		songNote.setSongId(songId);
		songNote.setSongNoteId(id);
		songNote.setStartPosition(start);
		songNote.setEndPosition(end);
		
		return songNote;
	}
}
